//#define __DEBUG__
// by Tyrghen
#define THIS_FILE "fn_keyup_handler.sqf"
#include "x_setup.sqf"

private["_handled", "_ctrl", "_dikCode", "_shift", "_ctrlKey", "_alt"];
_ctrl = _this select 0;
_dikCode = _this select 1;
_shift = _this select 2;
_ctrlKey = _this select 3;
_alt = _this select 4;
_handled = false;
if (_dikCode in actionKeys "TeamSwitch") then {
	if ((alive player) && !(player getVariable "xr_pluncon") && !(_shift) && !(_ctrlKey) && !(_alt)) then {
		[1, _this] call FUNC(KeyDownCommandingMenu);
		_handled = true;
	};
};
__TRACE_1("_handled","_handled")
_handled;